package connect4client.commands;

import messages.UserDetailsReplyMessage;

/**
 * The UserDetailsReply command.
 * 
 * This command will handle UserDetailsReply messages.
 */
public class UserDetailsReplyCommand extends Command {

	public UserDetailsReplyCommand(UserDetailsReplyMessage message){
		super(message);
	}
	
	@Override
	public void execute() {		
		UserDetailsReplyMessage message = (UserDetailsReplyMessage) this.message;	
		guiMediator.userDetailsReply(message.getPlayer(), message.getOldMatchs(), message.getActiveMatchs());
	}
}
